package com.qsl.common.enums;

public enum ResponseCodeEnum {
    SUCCESS("success", 200), WARN("warn", 201),
    ERROR("error", 500),
    TOKEN_ERROR("token过期", 401),
    NO_PERMISSION("无权限访问", 403);

    private String message;
    private Integer code;

    ResponseCodeEnum(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }


    public Integer getCode() {
        return code;
    }

}
